package com.six.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.six.core.entity.RolePermission;
import org.apache.ibatis.annotations.*;

@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    @Delete("delete from acl_role_permission where role_id=#{roleId}")
    void deleteByUserId(Integer roleId);

//    ("insert into acl_role_permission (role_id, permission_id ) values (#{role_id},#{permission_id})")
    void insertRoleId(@Param("roleId") Integer roleId,@Param("pIds")Integer[] pIds);
}
